package ua.com.globallogic.training.subway;


import java.util.Date;

public class TimeBoundCard extends SubwayCard {

    private TimeBoundCardState state;

    public TimeBoundCard(CardState state) {
        super(state);
        this.state = (TimeBoundCardState)state;
    }

    public Date getExpirationDate() {
        return state.getExpirationDate();
    }

    @Override
    public void chargeOneTrip() {
        state.chargeOneTrip();
    }
}
